﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="WebGui.Admin.Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            height: 23px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
      <table>
          <tr>
              <td align="right"></td>
              <td><h2>Edit Event</h2></td>
          </tr> 
          <tr>
              <td align="right">Start</td>
       <td><asp:TextBox ID="TxtStart" runat="server"></asp:TextBox>
       <asp:RequiredFieldValidator ControlToValidate="TxtStart" ID="DateemptyvalidatorStarttime" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator></td>
       <asp:RegularExpressionValidator id="datevalidatorStarttime" runat="server" ErrorMessage="Not a date" ControlToValidate="TxtStart" 
       ValidationExpression="\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}"></asp:RegularExpressionValidator>  
          </tr>
          <tr>
              <td align="right">End</td>
      <td> <asp:TextBox ID="TxtEnd" runat="server"></asp:TextBox></td>
      <asp:RequiredFieldValidator ControlToValidate="TxtEnd" ID="Dateemptyvalidatorendtime" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
       <asp:RegularExpressionValidator id="datevalidatorEndtime" runat="server" ErrorMessage="Not a date" ControlToValidate="TxtEnd" 
       ValidationExpression="\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}"></asp:RegularExpressionValidator>   
          </tr>
       <tr>
           <td align="right">Comment</td>
        <td><asp:TextBox ID="TxtComment" runat="server"></asp:TextBox></td>
       </tr>
       <tr>
           <td align="right">Lessontype</td>
           <td>
               <asp:DropDownList ID="DdlType" runat="server" DataSourceID="SqlDataSource" 
                   DataTextField="Name" DataValueField="Id">
               </asp:DropDownList>
               <asp:SqlDataSource ID="SqlDataSource" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DIBSConnectionString %>" 
                   SelectCommand="SELECT [Name], [Id] FROM [Type]"></asp:SqlDataSource>
           </td>
       </tr>
         <tr><td align="right"></td>
         
            <td>
                    <asp:Button ID="BtnOk" runat="server" OnClick="BtnOk_Click" Text="OK" />
                    <asp:Button ID="BtnCancel" runat="server" Text="Cancel" 
                        OnClick="BtnCancel_Click" />
                </td>
          </tr>
    </table>
    </div>
    </form>
</body>
</html>
